package com.lengxf.design;

import java.util.ArrayList;
import java.util.List;

/**
 * 负责人角色
 * By Lengxf
 */
public class MementoCaretaker {

    private final List<ChessmanMemento> chessmanMemento = new ArrayList<>();

    public ChessmanMemento getChessmanMemento(int i) {
        return chessmanMemento.get(i);
    }

    public void setChessmanMemento(ChessmanMemento chessmanMemento) {
        this.chessmanMemento.add(chessmanMemento);
    }
}
